package br.upe.portlet.estagio.service.persistence;

public class EstagioUtil {
    private static EstagioPersistence _persistence;

    public static br.upe.portlet.estagio.model.Estagio create(long codigo) {
        return getPersistence().create(codigo);
    }

    public static br.upe.portlet.estagio.model.Estagio remove(long codigo)
        throws br.upe.portlet.estagio.NoSuchEstagioException,
            com.liferay.portal.SystemException {
        return getPersistence().remove(codigo);
    }

    public static br.upe.portlet.estagio.model.Estagio remove(
        br.upe.portlet.estagio.model.Estagio estagio)
        throws com.liferay.portal.SystemException {
        return getPersistence().remove(estagio);
    }

    /**
     * @deprecated Use <code>update(Estagio estagio, boolean merge)</code>.
     */
    public static br.upe.portlet.estagio.model.Estagio update(
        br.upe.portlet.estagio.model.Estagio estagio)
        throws com.liferay.portal.SystemException {
        return getPersistence().update(estagio);
    }

    /**
     * Add, update, or merge, the entity. This method also calls the model
     * listeners to trigger the proper events associated with adding, deleting,
     * or updating an entity.
     *
     * @param                estagio the entity to add, update, or merge
     * @param                merge boolean value for whether to merge the entity. The
     *                                default value is false. Setting merge to true is more
     *                                expensive and should only be true when estagio is
     *                                transient. See LEP-5473 for a detailed discussion of this
     *                                method.
     * @return                true if the portlet can be displayed via Ajax
     */
    public static br.upe.portlet.estagio.model.Estagio update(
        br.upe.portlet.estagio.model.Estagio estagio, boolean merge)
        throws com.liferay.portal.SystemException {
        return getPersistence().update(estagio, merge);
    }

    public static br.upe.portlet.estagio.model.Estagio updateImpl(
        br.upe.portlet.estagio.model.Estagio estagio, boolean merge)
        throws com.liferay.portal.SystemException {
        return getPersistence().updateImpl(estagio, merge);
    }

    public static br.upe.portlet.estagio.model.Estagio findByPrimaryKey(
        long codigo)
        throws br.upe.portlet.estagio.NoSuchEstagioException,
            com.liferay.portal.SystemException {
        return getPersistence().findByPrimaryKey(codigo);
    }

    public static br.upe.portlet.estagio.model.Estagio fetchByPrimaryKey(
        long codigo) throws com.liferay.portal.SystemException {
        return getPersistence().fetchByPrimaryKey(codigo);
    }

    public static java.util.List<Object> findWithDynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> findWithDynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> findAll()
        throws com.liferay.portal.SystemException {
        return getPersistence().findAll();
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> findAll(
        int start, int end) throws com.liferay.portal.SystemException {
        return getPersistence().findAll(start, end);
    }

    public static java.util.List<br.upe.portlet.estagio.model.Estagio> findAll(
        int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
        throws com.liferay.portal.SystemException {
        return getPersistence().findAll(start, end, obc);
    }

    public static void removeAll() throws com.liferay.portal.SystemException {
        getPersistence().removeAll();
    }

    public static int countAll() throws com.liferay.portal.SystemException {
        return getPersistence().countAll();
    }

    public static EstagioPersistence getPersistence() {
        return _persistence;
    }

    public void setPersistence(EstagioPersistence persistence) {
        _persistence = persistence;
    }
}
